from django.urls import path, include
from rest_framework import routers
from apps.common.wx.views import WxViewSet
from apps.common.uploadFile.viewOfoss import FileViewOfOssSet
from apps.common.third.views import ThirdViewSet
from apps.common.ali.sendSms.views import ValidateCodeViewSet
from apps.common.script.views import ScriptViewSet
from apps.common.largeData.views import LargeDataViewSet
from apps.common.third.J99APIView import J99APIViewSet


router = routers.DefaultRouter()
router.register('script', ScriptViewSet, basename='script')
router.register('wx', WxViewSet, basename='wx')
router.register('oss', FileViewOfOssSet, basename='oss')
router.register('third', ThirdViewSet, basename='third')
router.register('ali/validateCode', ValidateCodeViewSet, basename='validateCode')
router.register('largeData', LargeDataViewSet, basename='largeData')
router.register('99api', J99APIViewSet, basename='99api')


urlpatterns = [
    path('common/', include(router.urls)),
]
